package com.yuyou.hxyy.service.api.bean;

import com.alibaba.fastjson.JSONObject;



public class LoginRedisObj {
		
	private String accessToken; 
	
	private Long userId;
	
	private String username;
		
	private Integer userType;
	
	private String role;

	private String headImg;

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public String getHeadImg() {
		return headImg;
	}

	public void setHeadImg(String headImg) {
		this.headImg = headImg;
	}

	public LoginRedisObj(String accessToken, Long userId, String username,
			Integer userType, String role,String headImg) {
		super();
		this.accessToken = accessToken;
		this.userId = userId;
		this.username = username;
		this.userType = userType;
		this.role=role;
		this.headImg = headImg;
	}

	
	
	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String toJson() {
		return JSONObject.toJSONString(this,true);
	}
	
	
}
